home *** CD-ROM | disk | FTP | other *** search
- package sun.font;
-
- import java.awt.geom.GeneralPath;
- import sun.font.LayoutPathImpl.SegmentPath;
-
- class LayoutPathImpl$SegmentPath$Segment {
- // $FF: renamed from: ix int
- final int field_0;
- // $FF: renamed from: ux double
- final double field_1;
- // $FF: renamed from: uy double
- final double field_2;
- final LayoutPathImpl.SegmentPath.LineInfo temp;
- boolean broken;
- // $FF: renamed from: cx double
- double field_3;
- // $FF: renamed from: cy double
- double field_4;
- // $FF: renamed from: gp java.awt.geom.GeneralPath
- GeneralPath field_5;
- // $FF: synthetic field
- final LayoutPathImpl.SegmentPath this$0;
-
- LayoutPathImpl$SegmentPath$Segment(LayoutPathImpl.SegmentPath var1, int var2) {
- this.this$0 = var1;
- this.field_0 = var2;
- double var3 = SegmentPath.access$000(var1)[var2 + 2] - SegmentPath.access$000(var1)[var2 - 1];
- this.field_1 = (SegmentPath.access$000(var1)[var2] - SegmentPath.access$000(var1)[var2 - 3]) / var3;
- this.field_2 = (SegmentPath.access$000(var1)[var2 + 1] - SegmentPath.access$000(var1)[var2 - 2]) / var3;
- this.temp = new LayoutPathImpl.SegmentPath.LineInfo(var1);
- }
-
- void init() {
- this.broken = true;
- this.field_3 = this.field_4 = Double.MIN_VALUE;
- this.field_5 = new GeneralPath();
- }
-
- void move() {
- this.broken = true;
- }
-
- void close() {
- if (!this.broken) {
- this.field_5.closePath();
- }
-
- }
-
- void line(LayoutPathImpl.SegmentPath.LineInfo var1) {
- if (var1.pin(this.field_0, this.temp)) {
- LayoutPathImpl.SegmentPath.LineInfo var10000 = this.temp;
- var10000.sx -= SegmentPath.access$000(this.this$0)[this.field_0 - 1];
- double var2 = SegmentPath.access$000(this.this$0)[this.field_0 - 3] + this.temp.sx * this.field_1 - this.temp.sy * this.field_2;
- double var4 = SegmentPath.access$000(this.this$0)[this.field_0 - 2] + this.temp.sx * this.field_2 + this.temp.sy * this.field_1;
- var10000 = this.temp;
- var10000.lx -= SegmentPath.access$000(this.this$0)[this.field_0 - 1];
- double var6 = SegmentPath.access$000(this.this$0)[this.field_0 - 3] + this.temp.lx * this.field_1 - this.temp.ly * this.field_2;
- double var8 = SegmentPath.access$000(this.this$0)[this.field_0 - 2] + this.temp.lx * this.field_2 + this.temp.ly * this.field_1;
- if (var2 != this.field_3 || var4 != this.field_4) {
- if (this.broken) {
- this.field_5.moveTo((float)var2, (float)var4);
- } else {
- this.field_5.lineTo((float)var2, (float)var4);
- }
- }
-
- this.field_5.lineTo((float)var6, (float)var8);
- this.broken = false;
- this.field_3 = var6;
- this.field_4 = var8;
- }
-
- }
- }
-